package com.xing.dao;

import com.xing.core.BaseDao;
import com.xing.entity.OssEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2024/4/12 17:16
 */
@Mapper
public interface OssDao extends BaseDao<OssEntity> {
    @Select("SELECT id FROM sys_oss WHERE url = #{url} AND del_flag = 0")
    public Long getOssId(@Param("url") String url);
}
